/**
 * [Copyright 2019  zt 分布式代码生成工具
 * <p>
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * <p>
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * <p>
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.base.test.rabbitmq.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.base.commons.mybatis.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * mq生产者消息表
 * @author qiaodong
 * @since 2020-08-27
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("mq_send")
public class MqSendEntity extends BaseEntity {
	private static final long serialVersionUID = 1L;

    /**
     * 消息ID
     */
	private String msgId;
    /**
     * 交换器
     */
	private String exchange;
    /**
     * 路由键
     */
	private String routingKey;
    /**
     * 消息内容json格式
     */
	private String msgJson;
    /**
     * 失败类型 1：mq连接失败 2:投递交换器失败 3:投递队列失败
     */
	private Integer failType;
    /**
     * 状态 1：待定 2：失败 3：成功
     */
	private Integer status;
    /**
     * 应用代码 BSC,FMS,OWMS
     */
	private String appCode;

	/**
	 * 业务场景
	 */
	private String businessType;

    /**
     * 备注
     */
	private String remark;
    /**
     * 重试次数
     */
	private Integer retryCount;
}